package book;

public class Book {
    private String shuming; //书名
    private String zuozhe; //作者
    private int jiage; //价格
    private String leixing; //类型如小说呀还是漫改
    private boolean sfbjc; //是否被借出的汉语缩写， 默认是false

    public Book(String shuming, String zuozhe, int jiage, String leixing, boolean sfbjc) {
        this.shuming = shuming;   //此时构造方法就是为了初始化
        this.zuozhe = zuozhe;
        this.jiage = jiage;
        this.leixing = leixing;
        this.sfbjc = sfbjc;
    }

    public String getShuming() {
        return shuming;
    }

    public void setShuming(String shuming) {
        this.shuming = shuming;
    }

    public String getZuozhe() {
        return zuozhe;
    }

    public void setZuozhe(String zuozhe) {
        this.zuozhe = zuozhe;
    }

    public int getJiage() {
        return jiage;
    }

    public void setJiage(int jiage) {
        this.jiage = jiage;
    }

    public String getLeixing() {
        return leixing;
    }

    public void setLeixing(String leixing) {
        this.leixing = leixing;
    }

    public boolean isSfbjc() {
        return sfbjc;
    }

    public void setSfbjc(boolean sfbjc) {
        this.sfbjc = sfbjc;
    }
}
